package com.example.vs;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Vs extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);  
        
        Button next = (Button) findViewById(R.id.Button01);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
            	Intent myIntent = new Intent(view.getContext(), Progress.class);
                startActivity(myIntent);
                
//                Intent intent = new Intent();
//                intent.setClass(Vs.this, Progress.class);
//                startActivity(intent);
//                finish();
//                
//                Context myContext = this.; 
//                Intent i = new Intent(myContext, Progress.class);
//
//                // the results are called on widgetActivityCallback
//                myContext.startSubActivity(i, Global.WIDGET_REQ_CODE);
            }

        });
        
        Button next2 = (Button) findViewById(R.id.Button02);
        next2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
            	Intent myIntent = new Intent(view.getContext(), Progress.class);
                startActivity(myIntent);
            }

        });
    }    
}